package com.ruoyi.legal.mapper;

import java.util.List;
import java.util.Map;

import com.ruoyi.legal.domain.Holiday;
import org.apache.ibatis.annotations.Mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
 * 节假日值班Mapper接口
 * 
 * @author xwj
 * @date 2025-05-06
 */
@Mapper
public interface HolidayMapper extends BaseMapper<Holiday> {
    /**
     * 查询节假日值班
     * 
     * @param id 节假日值班主键
     * @return 节假日值班
     */
    public Holiday selectHolidayById(Long id);

    /**
     * 查询节假日值班列表
     * 
     * @param holiday 节假日值班
     * @return 节假日值班集合
     */
    public List<Holiday> selectHolidayList(Holiday holiday);


    /**
     * 删除节假日值班
     * 
     * @param id 节假日值班主键
     * @return 结果
     */
    public int deleteHolidayById(Long id);

    /**
     * 批量删除节假日值班
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteHolidayByIds(Long[] ids);

    List<Map> countNum(Holiday holiday);

    List<Map> yearHolidays(Holiday holiday);
}
